export const formComponentConfig = {};
export const formRenderKeys = [
  'billNo',
  'zeroCategoryCode',
  'creator',
  'undertakingUnit',
  'createTime',
  'billStatus',
  'validFlag',
];

export const formRenderConfig = {
  billNo: {
    label: '单据编号',
    field: 'billNo',
    width: '200px',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入单据编号',
    },
  },
  zeroCategoryCode: {
    label: '零级品类',
    width: '200px',
    field: 'zeroCategoryCode',
    componentName: 'dictSelect',
    componentProps: {
      dictType: 'zeroLevelCategory',
      allowClear: 'true',
    },
  },
  creator: {
    label: '编制人',
    field: 'creator',
    width: '200px',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入编制人',
    },
  },
  undertakingUnit: {
    label: '编制人单位',
    field: 'undertakingUnit',
    width: '200px',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入编制人单位',
    },
  },
  createTime: {
    label: '编制时间',
    field: 'createTime',
    componentName: 'rangPicker',
    formItemProps: {
      style: 'width: 595px !important',
    },
    componentProps: {
      allowClear: 'true',
      format: 'YYYY-MM-DD',
    },
  },
  billStatus: {
    label: '单据状态',
    width: '200px',
    field: 'billStatus',
    componentName: 'dictSelect',
    componentProps: {
      title: '单据状态',
      allowClear: 'true',
      dictType: 'billStatus',
    },
  },
  validFlag: {
    label: '有效状态',
    width: '200px',
    field: 'validFlag',
    componentName: 'dictSelect',
    componentProps: {
      title: '单据状态',
      allowClear: 'true',
      dictType: 'uniqueValidFlag',
    },
  },
};
